<template>
  <h1>计数器1:{{this.$store.state.count}}</h1>
  <button @click="increment">增加</button>
</template>
<script>
export default {
  methods:{
    increment(){
      this.$store.commit('increment')
    }
  }
}
</script>